import { toast as hotToast } from 'react-hot-toast';

interface ToastProps {
  title: string;
  description?: string;
  variant?: 'default' | 'destructive';
}

export function toast({ title, description, variant }: ToastProps) {
  const message = description ? `${title}: ${description}` : title;
  
  if (variant === 'destructive') {
    hotToast.error(message);
  } else {
    hotToast.success(message);
  }
}